package com.china08.yxyapi.entity.db.questionbank;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 
 * 
 * 题库: 章节和知识点的关联信息
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_quesbank_book_contents_knowledge", catalog = "yxy_question_bank", uniqueConstraints = {
        @UniqueConstraint(columnNames = { "book_content_id", "knowledge_id" }) })
public class YxyQuesbankBookContentsKnowledge extends BaseEntityNoId {

    @Id
    @Column(length = 32)
    private String id;

    @Column(name = "book_content_id", nullable = false, columnDefinition = "varchar(32) comment '章节id' ")
    private String bookContentId;

    @Column(name = "knowledge_id", nullable = false, columnDefinition = "varchar(32) comment '知识点id' ")
    private String knowledgeId;

    @Column(nullable = false)
    private Integer orderNum = 0;

}
